#include<stdio.h>
#include<string.h>

int main()
{
	char a1[510],b1[510];
	int a[510],b[510],c[510],i,n,s1,s2,s3;
	while (scanf("%s%s",&a1,&b1)==2)
	{
	s1=strlen(a1);
	s2=strlen(b1);
	s3=0;
	n=0;
	memset(a,0,sizeof(a));
	memset(b,0,sizeof(b));
	memset(c,0,sizeof(c));
	for (i=0;i<s1;i++)
		a[s1-1-i]=a1[i]-48;
	for (i=0;i<s2;i++)
		b[s2-1-i]=b1[i]-48;
	while (s3<s1||s3<s2)
	{
		c[s3]=a[s3]+b[s3]+n;
		n=c[s3]/10;
		c[s3]=c[s3]%10;
		s3++;
	}
	c[s3]+=n;
	if (c[s3]==0)
		s3--;
	for (i=s3;i>=0;i--)
		printf("%d",c[i]);
	printf("\n");
	}
	return 0;
}
